<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>设置表溢出</title>
  <script src="./js/jexcel.js"></script>
  <script src="./js/jsuites.js"></script>
  <link rel="stylesheet" href="./css/jsuites.css" type="text/css" />
  <link rel="stylesheet" href="./css/jexcel.css" type="text/css" />
</head>

<body>
  <h1>设置表溢出</h1>
  <p>为你的在线javascript电子表格定义宽度和高度。:</p>

  <div id="spreadsheet"></div>
</body>
<script>
  jspreadsheet(document.getElementById('spreadsheet'), {
    minDimensions: [10, 20],
    defaultColWidth: 100,
    tableOverflow: true,
    tableWidth: "600px",
    columns: [
      {
        type: "dropdown",
        source: [{ id: 1, name: "yes" }, { id: 2, name: "no" }]
      },
      {
        type: "dropdown",
        source: [{ id: 1, name: "yes" }, { id: 2, name: "no" }]
      },
      {
        type: "dropdown",
        source: [{ id: 1, name: "yes" }, { id: 2, name: "no" }]
      },
      {
        type: "dropdown",
        source: [{ id: 1, name: "yes" }, { id: 2, name: "no" }]
      },
      {
        type: "dropdown",
        source: [{ id: 1, name: "yes" }, { id: 2, name: "no" }]
      }
    ]
  });
</script>

</html>